package DesignPattern.Structure.Decorator;

import Utils.Util;

public class Client {
    public static void main(String[] args) {
        // 点一份炒饭
        FastFood friedRice = new FriedRice();
        System.out.println(friedRice.getDesc() + "\t" + friedRice.cost());
        Util.divide();
        friedRice = new Egg(friedRice);
        System.out.println(friedRice.getDesc() + "\t" + friedRice.cost());
        Util.divide();
        friedRice = new Egg(friedRice);
        System.out.println(friedRice.getDesc() + "\t" + friedRice.cost());

    }
}
